class CreateCategories < ActiveRecord::Migration
  def self.up
    create_table :categories do |t|
      t.column :title, :string
      t.column :member_cost, :float, :default => 0
      t.column :resident_cost, :float, :default => 0
      t.timestamps
    end
    
    cat1 = Category.create(:title => 'flex desks', :member_cost => 2)
    cat2 = Category.create(:title => 'meeting rooms', :member_cost => 5)
    cat3 = Category.create(:title => 'conference rooms', :member_cost => 7)
    
  end

  def self.down
    drop_table :categories
  end
end
